package com.cy.controller;

import com.cy.common.constant.CommonConstant;
import com.cy.common.entity.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: 残影
 * @Date: 2023/4/10
 * @Description:
 */
@RestController
@RequestMapping("/common")
@Api(tags = "公共模块")
public class CommonController {

    @ApiOperation("获取机动车类型")
    @GetMapping("getCarType")
    public Result getCarType(){
        return Result.ok("获取机动车类型成功", CommonConstant.drivingLicenseType);
    }
}
